POV-Ray : Newsgroups : povray.general : Parametric object with shadow gets black : Re: Parametric object with shadow gets black Server Time
5 Jul 2024 14:54:06 EDT (-0400)
  Re: Parametric object with shadow gets black  
From: Wolfgang Wieser
Date: 20 Jun 2003 16:59:45
Message: <3ef375c0@news.povray.org>
Warp wrote:
>   It's difficult to test your scene if it doesn't work in the official
> version... :)
> 
Okay, so here is a version which can be rendered on official version. 
I replaced the Bessel functions with sin(): 

The problem is still there -- please have a look at it. 
Try using better accuracy and you may SIGSEGV POVRay...

Wolfgang

-----------------------------------------------------------
#include "functions.inc"

global_settings { assumed_gamma 2.2 }
light_source { <0,1,0>*20, rgb <2,2,2>/2 }
light_source { <0.2,1,-0.8>*20, rgb <2,2,2>/1.7 }

#declare m=3;
parametric {
        function { u*sin(v) }
        function { 15*sqrt(pow(sin(m*v)*sin(u/2)/3,2)+
                pow(cos(m*v)*m/u*sin(u/2)/3,2)) }
        function { u*cos(v) }
        <0.001,0>, <15,2*pi>
        contained_by {  sphere { 0, 15 }  }
        precompute 12 x,y,z
        accuracy 0.000001
        no_shadow  // <----------------- REMOVE THIS LINE
        scale 0.2
        pigment { color rgb <0,1,0> }
        rotate -20*y
        rotate -20*x
        scale 1.4
        translate -0.2*y
}

plane { y,-3.2 pigment { rgb .6 } }
camera {  location <0,0.3,-1>*8.3 up y  look_at <0,0,0> }


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.